home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Presentations / Presentations ’97 / Sessions ’97 / Multiplatform Code⁄Data Sharing / HelloBothWorlds / Libraries / resfile_flat.h < prev    next >
Encoding:
Text File  |  1997-06-26  |  536 b   |  29 lines  |  [TEXT/CWIE]

  1.  
  2. // mail <chelly@eden.com> or surf http://www.eden.com/~chelly for feedback
  3. // free source code - do whatever you like with it
  4.  
  5. // universal flat resource file access
  6.  
  7. #ifndef resfile_flat_H
  8. #define resfile_flat_H
  9.  
  10. #include "common.h"
  11.  
  12. #include "resfile.h"
  13. class stream; // forward declaration
  14.  
  15. class resfile_flat : public resfile {
  16. public:
  17.     
  18.     resfile_flat( stream* file ); // stream is a resource file opened by user
  19.     virtual ~resfile_flat();
  20.     
  21.     virtual void* get_resource( long type, int id );
  22.     
  23. private:
  24.     stream& m_file;
  25. };
  26.  
  27. #endif
  28.  
  29.